package structure.facade;

/**
 * Created by lie on 2017/10/31.
 * 张无忌 对应 外观类
 * 负责运用各种武功，发挥出最大威力
 */
public class Zhangwuji {
    private JingMai jingMai;
    private NeiGong neiGong;
    private Zhaoshi zhaoshi;

    public Zhangwuji() {
        this.jingMai = new JingMai();
        this.neiGong = new NeiGong();
        this.zhaoshi = new Zhaoshi();
    }

    /**
     * 使用乾坤大挪移
     */
    public void Qiankun(){
        jingMai.jingmai();
        neiGong.QianKun();
    }

    /**
     * 使用七伤拳
     */
    public void QiShang(){
        jingMai.jingmai();
        neiGong.JiuYang();
        zhaoshi.QiShang();
    }
}
